package lab01;

public class Test11 {
    public static void main(String[] args) {
        int i,j,t=-1;

        for(i=2;i<=100;i++) {
            j = 2;
            while (i % j != 0) {
                j++;}
            if (i == j){
                t++;
                if (t % 5 == 0){
                    System.out.println();    }


                System.out.print(" " + i);
            }
        }

    }
}
